package com.huixue.zdb.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 聊天信息表
 * </p>
 *
 * @author ZhouHuRun
 * @since 2020-09-23
 */
public class Chattable implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 聊天信息id
     */
    @TableId(value = "chatid", type = IdType.AUTO)
    private Integer chatid;

    /**
     * 聊天站长id
     */
    private Integer siteaid;

    /**
     * 聊天用户id
     */
    private Integer userid;

    /**
     * 聊天内容
     */
    private String chatmessage;


    public Integer getChatid() {
        return chatid;
    }

    public void setChatid(Integer chatid) {
        this.chatid = chatid;
    }

    public Integer getSiteaid() {
        return siteaid;
    }

    public void setSiteaid(Integer siteaid) {
        this.siteaid = siteaid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getChatmessage() {
        return chatmessage;
    }

    public void setChatmessage(String chatmessage) {
        this.chatmessage = chatmessage;
    }

    @Override
    public String toString() {
        return "Chattable{" +
        "chatid=" + chatid +
        ", siteaid=" + siteaid +
        ", userid=" + userid +
        ", chatmessage=" + chatmessage +
        "}";
    }
}
